home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / sample code / contributed / waste / extras / unsupported / weextrahooks.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  678 b   |  39 lines

  1. /*
  2.  *    WEExtraHooks.h
  3.  */
  4.  
  5.  
  6. #include "WASTE.h"
  7.  
  8. enum
  9. {
  10.     kInvisiblesOldDrawTextProcTag    =    'icDT' ,
  11.     kInvisiblesColorRedGreenTag     =    'icRG' ,
  12.     kInvisiblesColorBlueTag            =    'icB_'
  13. } ;
  14.  
  15. enum
  16. {
  17.     kEOL                            =    0x0D
  18. } ;
  19.  
  20. #ifdef __cplusplus
  21. inline Boolean IsColorPort ( GrafPtr port )
  22. {
  23.     return ( ( CGrafPtr ) port ) -> portVersion < 0 ;
  24. }
  25. #else
  26. #define IsColorPort(port)    (((CGrafPtr) (port))->portVersion < 0)
  27. #endif
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. pascal StyledLineBreakCode _WENoWrapLineBreak ( Ptr, SInt32, SInt32, SInt32, Fixed *, SInt32 *, WEReference ) ;
  34. pascal void _WEShowInvisiblesDrawText ( Ptr, SInt32, Fixed, JustStyleCode, WEReference ) ;
  35.  
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39.